import request from '@/utils/request'

export function createChatRoom(body) {
  return request.post('/room', body)
}

export function getChatRoom() {
  return request.get('/room')
}

export function getChatHistory(params) {
  return request.get('/roomMsg', params)
}

export function sendChatMessage(body) {
  return request.post('/roomMsg', body)
}
